package com.goods.shop.controller;

import com.alibaba.fastjson.JSONObject;
import com.goods.shop.BaseController;
import com.goods.shop.annotation.Log;
import com.goods.shop.annotation.Log2;
import com.goods.shop.service.ems.EmsService;
import com.goods.shop.service.model.ems.ResponseTraceModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@Log2
@Log
public class EmsTraceController extends BaseController {
    @Autowired
    private EmsService emsService;
    @RequestMapping("/emstrace/zd")
    public String getTrace(Model model, @RequestParam("type")String type, @RequestParam("traceNo")String traceNo)
    {
        String result=emsService.getTraceNo(traceNo);
        return result;
    }
}
